<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Repetier-Firmware: src/ArduinoAVR/Repetier/FatStructs.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="repetier-logo-trans128.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Repetier-Firmware
   &#160;<span id="projectnumber">0.91</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_fat_structs_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">src/ArduinoAVR/Repetier/FatStructs.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_fat_structs_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Arduino SdFat Library</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2009 by William Greiman</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * This file is part of the Arduino SdFat Library</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * This Library is free software: you can redistribute it and/or modify</span>
<a name="l00007"></a>00007 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00008"></a>00008 <span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00009"></a>00009 <span class="comment"> * (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * This Library is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00014"></a>00014 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment"> *</span>
<a name="l00016"></a>00016 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00017"></a>00017 <span class="comment"> * along with the Arduino SdFat Library.  If not, see</span>
<a name="l00018"></a>00018 <span class="comment"> * &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00019"></a>00019 <span class="comment"> */</span>
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef FatStructs_h</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define FatStructs_h</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="comment">/*</span>
<a name="l00027"></a>00027 <span class="comment"> * mostly from Microsoft document fatgen103.doc</span>
<a name="l00028"></a>00028 <span class="comment"> * http://www.microsoft.com/whdc/system/platform/firmware/fatgen.mspx</span>
<a name="l00029"></a>00029 <span class="comment"> */</span>
<a name="l00030"></a>00030 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00032"></a><a class="code" href="_fat_structs_8h.html#aa1aeb3a5e2838c5c7270fa17bcc31e8e">00032</a> <span class="comment"></span>uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#aa1aeb3a5e2838c5c7270fa17bcc31e8e">BOOTSIG0</a> = 0X55;
<a name="l00034"></a><a class="code" href="_fat_structs_8h.html#a1b5a143c48d93d6f4e3fc1f5f3ac1dc3">00034</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a1b5a143c48d93d6f4e3fc1f5f3ac1dc3">BOOTSIG1</a> = 0XAA;
<a name="l00035"></a>00035 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00043"></a><a class="code" href="structpartition_table.html">00043</a> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="structpartition_table.html" title="MBR partition table entry.">partitionTable</a> {
<a name="l00049"></a><a class="code" href="structpartition_table.html#ad2acb7fab9ef33a6f00c834401250229">00049</a>   uint8_t  <a class="code" href="structpartition_table.html#ad2acb7fab9ef33a6f00c834401250229">boot</a>;
<a name="l00054"></a><a class="code" href="structpartition_table.html#ab27b713d70d01c43e31fc67e08f876bf">00054</a>   uint8_t  <a class="code" href="structpartition_table.html#ab27b713d70d01c43e31fc67e08f876bf">beginHead</a>;
<a name="l00059"></a><a class="code" href="structpartition_table.html#a3ef026d5e8a9c697e414cf773b129db4">00059</a>   <span class="keywordtype">unsigned</span> <a class="code" href="structpartition_table.html#a3ef026d5e8a9c697e414cf773b129db4">beginSector</a> : 6;
<a name="l00061"></a><a class="code" href="structpartition_table.html#aae20759e6c6dbfa51368964f8fe095c7">00061</a>   <span class="keywordtype">unsigned</span> <a class="code" href="structpartition_table.html#aae20759e6c6dbfa51368964f8fe095c7">beginCylinderHigh</a> : 2;
<a name="l00066"></a><a class="code" href="structpartition_table.html#afefdee23280567f8434f9c31610e0a3b">00066</a>   uint8_t  <a class="code" href="structpartition_table.html#afefdee23280567f8434f9c31610e0a3b">beginCylinderLow</a>;
<a name="l00071"></a><a class="code" href="structpartition_table.html#a1d127017fb298b889f4ba24752d08b8e">00071</a>   uint8_t  <a class="code" href="structpartition_table.html#a1d127017fb298b889f4ba24752d08b8e">type</a>;
<a name="l00076"></a><a class="code" href="structpartition_table.html#a248e6a8c42872744129b8b85a864a7a6">00076</a>   uint8_t  <a class="code" href="structpartition_table.html#a248e6a8c42872744129b8b85a864a7a6">endHead</a>;
<a name="l00081"></a><a class="code" href="structpartition_table.html#a1412f3c5116885eb7d4a047e432c9cdd">00081</a>   <span class="keywordtype">unsigned</span> <a class="code" href="structpartition_table.html#a1412f3c5116885eb7d4a047e432c9cdd">endSector</a> : 6;
<a name="l00083"></a><a class="code" href="structpartition_table.html#adeccbdcad0d989d1e33a07b435ab7300">00083</a>   <span class="keywordtype">unsigned</span> <a class="code" href="structpartition_table.html#adeccbdcad0d989d1e33a07b435ab7300">endCylinderHigh</a> : 2;
<a name="l00088"></a><a class="code" href="structpartition_table.html#a3eb4b87675075500899edbb9296e0435">00088</a>   uint8_t  <a class="code" href="structpartition_table.html#a3eb4b87675075500899edbb9296e0435">endCylinderLow</a>;
<a name="l00090"></a><a class="code" href="structpartition_table.html#a5951cd74127d45180071909972899c0e">00090</a>   uint32_t <a class="code" href="structpartition_table.html#a5951cd74127d45180071909972899c0e">firstSector</a>;
<a name="l00092"></a><a class="code" href="structpartition_table.html#ab3559f69d4a46a945bd4c037070585f2">00092</a>   uint32_t <a class="code" href="structpartition_table.html#ab3559f69d4a46a945bd4c037070585f2">totalSectors</a>;
<a name="l00093"></a>00093 };
<a name="l00095"></a><a class="code" href="_fat_structs_8h.html#a37251e7d5c69a159be727a3fc8c9d0e6">00095</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpartition_table.html" title="MBR partition table entry.">partitionTable</a> <a class="code" href="structpartition_table.html" title="MBR partition table entry.">part_t</a>;
<a name="l00096"></a>00096 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00104"></a><a class="code" href="structmaster_boot_record.html">00104</a> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="structmaster_boot_record.html" title="Master Boot Record.">masterBootRecord</a> {
<a name="l00106"></a><a class="code" href="structmaster_boot_record.html#aa0506841535b45b93c3f51da3e662158">00106</a>   uint8_t  <a class="code" href="structmaster_boot_record.html#aa0506841535b45b93c3f51da3e662158">codeArea</a>[440];
<a name="l00108"></a><a class="code" href="structmaster_boot_record.html#a6a40348b3b308847ba21a75829d91871">00108</a>   uint32_t <a class="code" href="structmaster_boot_record.html#a6a40348b3b308847ba21a75829d91871">diskSignature</a>;
<a name="l00110"></a><a class="code" href="structmaster_boot_record.html#aefe56bef1bc942c24bc7eefc4a7aefcc">00110</a>   uint16_t <a class="code" href="structmaster_boot_record.html#aefe56bef1bc942c24bc7eefc4a7aefcc">usuallyZero</a>;
<a name="l00112"></a><a class="code" href="structmaster_boot_record.html#a524278b18c83dccc3da5eaab41601a0d">00112</a>   <a class="code" href="structpartition_table.html" title="MBR partition table entry.">part_t</a>   <a class="code" href="structmaster_boot_record.html#a524278b18c83dccc3da5eaab41601a0d">part</a>[4];
<a name="l00114"></a><a class="code" href="structmaster_boot_record.html#aa5633d8ea0049be26315e7627e32bb4e">00114</a>   uint8_t  <a class="code" href="structmaster_boot_record.html#aa5633d8ea0049be26315e7627e32bb4e">mbrSig0</a>;
<a name="l00116"></a><a class="code" href="structmaster_boot_record.html#af106928fafe93a641c06cfb87b0d24e3">00116</a>   uint8_t  <a class="code" href="structmaster_boot_record.html#af106928fafe93a641c06cfb87b0d24e3">mbrSig1</a>;
<a name="l00117"></a>00117 };
<a name="l00119"></a><a class="code" href="_fat_structs_8h.html#a7c429e5097f101c8c97663d6c4155bd9">00119</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structmaster_boot_record.html" title="Master Boot Record.">masterBootRecord</a> <a class="code" href="structmaster_boot_record.html" title="Master Boot Record.">mbr_t</a>;
<a name="l00120"></a>00120 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00128"></a><a class="code" href="structbios_parm_block.html">00128</a> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="structbios_parm_block.html" title="BIOS parameter block.">biosParmBlock</a> {
<a name="l00133"></a><a class="code" href="structbios_parm_block.html#adb2ddeae74baf681103d21d724814a63">00133</a>   uint16_t <a class="code" href="structbios_parm_block.html#adb2ddeae74baf681103d21d724814a63">bytesPerSector</a>;
<a name="l00139"></a><a class="code" href="structbios_parm_block.html#a3ce07376c286acd8393a18a32d7ca4c0">00139</a>   uint8_t  <a class="code" href="structbios_parm_block.html#a3ce07376c286acd8393a18a32d7ca4c0">sectorsPerCluster</a>;
<a name="l00144"></a><a class="code" href="structbios_parm_block.html#a16c854faf567331bbbfb383e6c8df6f5">00144</a>   uint16_t <a class="code" href="structbios_parm_block.html#a16c854faf567331bbbfb383e6c8df6f5">reservedSectorCount</a>;
<a name="l00148"></a><a class="code" href="structbios_parm_block.html#a624e9eb125b4fc8aeaebcccf79e17aa8">00148</a>   uint8_t  <a class="code" href="structbios_parm_block.html#a624e9eb125b4fc8aeaebcccf79e17aa8">fatCount</a>;
<a name="l00157"></a><a class="code" href="structbios_parm_block.html#aabe25e54b9c06a9a7393fc6c475d9fa1">00157</a>   uint16_t <a class="code" href="structbios_parm_block.html#aabe25e54b9c06a9a7393fc6c475d9fa1">rootDirEntryCount</a>;
<a name="l00167"></a><a class="code" href="structbios_parm_block.html#ad717f5b9af13f8ec9d0d6d1337174dfa">00167</a>   uint16_t <a class="code" href="structbios_parm_block.html#ad717f5b9af13f8ec9d0d6d1337174dfa">totalSectors16</a>;
<a name="l00174"></a><a class="code" href="structbios_parm_block.html#ab88738f9cb91c882cb91d5e83a19a73f">00174</a>   uint8_t  <a class="code" href="structbios_parm_block.html#ab88738f9cb91c882cb91d5e83a19a73f">mediaType</a>;
<a name="l00180"></a><a class="code" href="structbios_parm_block.html#abf85d1c57b01c8901a0cdcd0ac1babc2">00180</a>   uint16_t <a class="code" href="structbios_parm_block.html#abf85d1c57b01c8901a0cdcd0ac1babc2">sectorsPerFat16</a>;
<a name="l00182"></a><a class="code" href="structbios_parm_block.html#ae1928fd953f5d0f198826c93c320f2b2">00182</a>   uint16_t <a class="code" href="structbios_parm_block.html#ae1928fd953f5d0f198826c93c320f2b2">sectorsPerTrtack</a>;
<a name="l00184"></a><a class="code" href="structbios_parm_block.html#a57cb7e16b9969fa87c9f1ca43a87d217">00184</a>   uint16_t <a class="code" href="structbios_parm_block.html#a57cb7e16b9969fa87c9f1ca43a87d217">headCount</a>;
<a name="l00190"></a><a class="code" href="structbios_parm_block.html#a454fd6cc3f063c86b7fe65c367da7cdd">00190</a>   uint32_t <a class="code" href="structbios_parm_block.html#a454fd6cc3f063c86b7fe65c367da7cdd">hidddenSectors</a>;
<a name="l00197"></a><a class="code" href="structbios_parm_block.html#a64d5902f9e900ecc745b1c0b325d875f">00197</a>   uint32_t <a class="code" href="structbios_parm_block.html#a64d5902f9e900ecc745b1c0b325d875f">totalSectors32</a>;
<a name="l00201"></a><a class="code" href="structbios_parm_block.html#a687653b3b71ab0de1f27f8ab8f331a1c">00201</a>   uint32_t <a class="code" href="structbios_parm_block.html#a687653b3b71ab0de1f27f8ab8f331a1c">sectorsPerFat32</a>;
<a name="l00212"></a><a class="code" href="structbios_parm_block.html#a4f864cefb7f1b004d5739ffab9a65ae1">00212</a>   uint16_t <a class="code" href="structbios_parm_block.html#a4f864cefb7f1b004d5739ffab9a65ae1">fat32Flags</a>;
<a name="l00217"></a><a class="code" href="structbios_parm_block.html#a8f27235fa3dee48a4b4e099135fc81d6">00217</a>   uint16_t <a class="code" href="structbios_parm_block.html#a8f27235fa3dee48a4b4e099135fc81d6">fat32Version</a>;
<a name="l00222"></a><a class="code" href="structbios_parm_block.html#a58249ed4ed0f92d5768f2342f248af82">00222</a>   uint32_t <a class="code" href="structbios_parm_block.html#a58249ed4ed0f92d5768f2342f248af82">fat32RootCluster</a>;
<a name="l00227"></a><a class="code" href="structbios_parm_block.html#aad3222ea255af06d09734e96a93c82ed">00227</a>   uint16_t <a class="code" href="structbios_parm_block.html#aad3222ea255af06d09734e96a93c82ed">fat32FSInfo</a>;
<a name="l00233"></a><a class="code" href="structbios_parm_block.html#a1914baf34756efd18072059dccfcf40f">00233</a>   uint16_t <a class="code" href="structbios_parm_block.html#a1914baf34756efd18072059dccfcf40f">fat32BackBootBlock</a>;
<a name="l00238"></a><a class="code" href="structbios_parm_block.html#ae31dc7ad96aec8e0d184fd7e5a97f30d">00238</a>   uint8_t  <a class="code" href="structbios_parm_block.html#ae31dc7ad96aec8e0d184fd7e5a97f30d">fat32Reserved</a>[12];
<a name="l00239"></a>00239 };
<a name="l00241"></a><a class="code" href="_fat_structs_8h.html#a5c8af240713e05e7e6c959006ced35fb">00241</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structbios_parm_block.html" title="BIOS parameter block.">biosParmBlock</a> <a class="code" href="structbios_parm_block.html" title="BIOS parameter block.">bpb_t</a>;
<a name="l00242"></a>00242 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00249"></a><a class="code" href="structfat32_boot_sector.html">00249</a> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="structfat32_boot_sector.html" title="Boot sector for a FAT16 or FAT32 volume.">fat32BootSector</a> {
<a name="l00251"></a><a class="code" href="structfat32_boot_sector.html#ae765fe8abf71fd961317f4314e16c1ac">00251</a>   uint8_t  <a class="code" href="structfat32_boot_sector.html#ae765fe8abf71fd961317f4314e16c1ac">jmpToBootCode</a>[3];
<a name="l00253"></a><a class="code" href="structfat32_boot_sector.html#ac1adff84818e7f18fdfea3374569a380">00253</a>   <span class="keywordtype">char</span>     <a class="code" href="structfat32_boot_sector.html#ac1adff84818e7f18fdfea3374569a380">oemName</a>[8];
<a name="l00255"></a><a class="code" href="structfat32_boot_sector.html#a4d8105e4754b2750ab421b9e84d2c43e">00255</a>   <a class="code" href="structbios_parm_block.html" title="BIOS parameter block.">bpb_t</a>    <a class="code" href="structfat32_boot_sector.html#a4d8105e4754b2750ab421b9e84d2c43e">bpb</a>;
<a name="l00257"></a><a class="code" href="structfat32_boot_sector.html#aa7c65fdb4f759fca094105d1c870bcb2">00257</a>   uint8_t  <a class="code" href="structfat32_boot_sector.html#aa7c65fdb4f759fca094105d1c870bcb2">driveNumber</a>;
<a name="l00259"></a><a class="code" href="structfat32_boot_sector.html#a2a2556147677ece60b8aadf4a0d608ed">00259</a>   uint8_t  <a class="code" href="structfat32_boot_sector.html#a2a2556147677ece60b8aadf4a0d608ed">reserved1</a>;
<a name="l00261"></a><a class="code" href="structfat32_boot_sector.html#acc4a4e4c22b630d12c1b2c2b8c7eb366">00261</a>   uint8_t  <a class="code" href="structfat32_boot_sector.html#acc4a4e4c22b630d12c1b2c2b8c7eb366">bootSignature</a>;
<a name="l00263"></a><a class="code" href="structfat32_boot_sector.html#a7c9ffcee12051cefe1724e8024af25f8">00263</a>   uint32_t <a class="code" href="structfat32_boot_sector.html#a7c9ffcee12051cefe1724e8024af25f8">volumeSerialNumber</a>;
<a name="l00265"></a><a class="code" href="structfat32_boot_sector.html#a253960050a38d2bfb2f57e86769aca62">00265</a>   <span class="keywordtype">char</span>     <a class="code" href="structfat32_boot_sector.html#a253960050a38d2bfb2f57e86769aca62">volumeLabel</a>[11];
<a name="l00267"></a><a class="code" href="structfat32_boot_sector.html#adf80bb044ef7c8ac6d371268aa338e23">00267</a>   <span class="keywordtype">char</span>     <a class="code" href="structfat32_boot_sector.html#adf80bb044ef7c8ac6d371268aa338e23">fileSystemType</a>[8];
<a name="l00269"></a><a class="code" href="structfat32_boot_sector.html#a5d683c906867f4e0122d2ce3462de292">00269</a>   uint8_t  <a class="code" href="structfat32_boot_sector.html#a5d683c906867f4e0122d2ce3462de292">bootCode</a>[420];
<a name="l00271"></a><a class="code" href="structfat32_boot_sector.html#abdaf2cc75b74800944ede557442ca5bd">00271</a>   uint8_t  <a class="code" href="structfat32_boot_sector.html#abdaf2cc75b74800944ede557442ca5bd">bootSectorSig0</a>;
<a name="l00273"></a><a class="code" href="structfat32_boot_sector.html#a44983e94ecddbdcb7ab691e493a13d94">00273</a>   uint8_t  <a class="code" href="structfat32_boot_sector.html#a44983e94ecddbdcb7ab691e493a13d94">bootSectorSig1</a>;
<a name="l00274"></a>00274 };
<a name="l00275"></a>00275 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00276"></a>00276 <span class="comment">// End Of Chain values for FAT entries</span>
<a name="l00278"></a><a class="code" href="_fat_structs_8h.html#a47b11a71cedad5402613ab2aae827c99">00278</a> <span class="comment"></span>uint16_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a47b11a71cedad5402613ab2aae827c99">FAT16EOC</a> = 0XFFFF;
<a name="l00280"></a><a class="code" href="_fat_structs_8h.html#a79b2cefbcfdbf3507fe0496804541b0d">00280</a> uint16_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a79b2cefbcfdbf3507fe0496804541b0d">FAT16EOC_MIN</a> = 0XFFF8;
<a name="l00282"></a><a class="code" href="_fat_structs_8h.html#ac213f2ce8eaa53f7d98424b300038dfd">00282</a> uint32_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#ac213f2ce8eaa53f7d98424b300038dfd">FAT32EOC</a> = 0X0FFFFFFF;
<a name="l00284"></a><a class="code" href="_fat_structs_8h.html#af5bcc97de8cc4956435d06349d6e714b">00284</a> uint32_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#af5bcc97de8cc4956435d06349d6e714b">FAT32EOC_MIN</a> = 0X0FFFFFF8;
<a name="l00286"></a><a class="code" href="_fat_structs_8h.html#a00e6cb52e814024fc23971c43f6e257a">00286</a> uint32_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a00e6cb52e814024fc23971c43f6e257a">FAT32MASK</a> = 0X0FFFFFFF;
<a name="l00287"></a>00287 
<a name="l00289"></a><a class="code" href="_fat_structs_8h.html#a91a3979f1149ff688d0d8bb696bc2887">00289</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structfat32_boot_sector.html" title="Boot sector for a FAT16 or FAT32 volume.">fat32BootSector</a> <a class="code" href="structfat32_boot_sector.html" title="Boot sector for a FAT16 or FAT32 volume.">fbs_t</a>;
<a name="l00290"></a>00290 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00321"></a><a class="code" href="structdirectory_entry.html">00321</a> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="structdirectory_entry.html" title="FAT short directory entry.">directoryEntry</a> {
<a name="l00327"></a><a class="code" href="structdirectory_entry.html#a03538c3434c511f082c32cda04754e0c">00327</a>   uint8_t  <a class="code" href="structdirectory_entry.html#a03538c3434c511f082c32cda04754e0c">name</a>[11];
<a name="l00334"></a><a class="code" href="structdirectory_entry.html#a983149395439fbc9ca8497076b75fd6b">00334</a>   uint8_t  <a class="code" href="structdirectory_entry.html#a983149395439fbc9ca8497076b75fd6b">attributes</a>;
<a name="l00339"></a><a class="code" href="structdirectory_entry.html#a937b2d2e4b78ddf9e42b19c754e4f31a">00339</a>   uint8_t  <a class="code" href="structdirectory_entry.html#a937b2d2e4b78ddf9e42b19c754e4f31a">reservedNT</a>;
<a name="l00345"></a><a class="code" href="structdirectory_entry.html#a088ac767e59feb38599e0a53e6aacb82">00345</a>   uint8_t  <a class="code" href="structdirectory_entry.html#a088ac767e59feb38599e0a53e6aacb82">creationTimeTenths</a>;
<a name="l00347"></a><a class="code" href="structdirectory_entry.html#a2b2b18a3fb988470278b1217abe946ab">00347</a>   uint16_t <a class="code" href="structdirectory_entry.html#a2b2b18a3fb988470278b1217abe946ab">creationTime</a>;
<a name="l00349"></a><a class="code" href="structdirectory_entry.html#ab00be6268bf4c4f4b6014f056e27ba45">00349</a>   uint16_t <a class="code" href="structdirectory_entry.html#ab00be6268bf4c4f4b6014f056e27ba45">creationDate</a>;
<a name="l00355"></a><a class="code" href="structdirectory_entry.html#a5635857642ec25e070355257115dafd1">00355</a>   uint16_t <a class="code" href="structdirectory_entry.html#a5635857642ec25e070355257115dafd1">lastAccessDate</a>;
<a name="l00360"></a><a class="code" href="structdirectory_entry.html#ad6224dfa27a1c558703f158e93ceafe0">00360</a>   uint16_t <a class="code" href="structdirectory_entry.html#ad6224dfa27a1c558703f158e93ceafe0">firstClusterHigh</a>;
<a name="l00362"></a><a class="code" href="structdirectory_entry.html#ab140bb773b2ff0ddf7199efc083ce037">00362</a>   uint16_t <a class="code" href="structdirectory_entry.html#ab140bb773b2ff0ddf7199efc083ce037">lastWriteTime</a>;
<a name="l00364"></a><a class="code" href="structdirectory_entry.html#a26f462d6e4410d502149973ee6c216fd">00364</a>   uint16_t <a class="code" href="structdirectory_entry.html#a26f462d6e4410d502149973ee6c216fd">lastWriteDate</a>;
<a name="l00366"></a><a class="code" href="structdirectory_entry.html#a3a4f70fb49494208d7eb349969a8acaa">00366</a>   uint16_t <a class="code" href="structdirectory_entry.html#a3a4f70fb49494208d7eb349969a8acaa">firstClusterLow</a>;
<a name="l00368"></a><a class="code" href="structdirectory_entry.html#a48f46ad02b77a00b795d15626ba1d42e">00368</a>   uint32_t <a class="code" href="structdirectory_entry.html#a48f46ad02b77a00b795d15626ba1d42e">fileSize</a>;
<a name="l00369"></a>00369 };
<a name="l00370"></a>00370 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00371"></a>00371 <span class="comment">// Definitions for directory entries</span>
<a name="l00372"></a>00372 <span class="comment">//</span>
<a name="l00374"></a><a class="code" href="_fat_structs_8h.html#a803db59d4e16a0c54a647afc6a7954e3">00374</a> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structdirectory_entry.html" title="FAT short directory entry.">directoryEntry</a> <a class="code" href="structdirectory_entry.html" title="FAT short directory entry.">dir_t</a>;
<a name="l00376"></a><a class="code" href="_fat_structs_8h.html#a27c8cd1e50f71974c9d98a868cfc4c77">00376</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a27c8cd1e50f71974c9d98a868cfc4c77">DIR_NAME_0XE5</a> = 0X05;
<a name="l00378"></a><a class="code" href="_fat_structs_8h.html#a5de4ada3536d89559f6433e835e311da">00378</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a5de4ada3536d89559f6433e835e311da">DIR_NAME_DELETED</a> = 0XE5;
<a name="l00380"></a><a class="code" href="_fat_structs_8h.html#a23b2e4d06e245c778f4c52909cf97c76">00380</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a23b2e4d06e245c778f4c52909cf97c76">DIR_NAME_FREE</a> = 0X00;
<a name="l00382"></a><a class="code" href="_fat_structs_8h.html#abff82a1fd65417a032777e0821821640">00382</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#abff82a1fd65417a032777e0821821640">DIR_ATT_READ_ONLY</a> = 0X01;
<a name="l00384"></a><a class="code" href="_fat_structs_8h.html#a3a41f54f933a4d34b1502321ab9da5ff">00384</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a3a41f54f933a4d34b1502321ab9da5ff">DIR_ATT_HIDDEN</a> = 0X02;
<a name="l00386"></a><a class="code" href="_fat_structs_8h.html#ae89bc34164e7318b3d3169ff290c8d70">00386</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#ae89bc34164e7318b3d3169ff290c8d70">DIR_ATT_SYSTEM</a> = 0X04;
<a name="l00388"></a><a class="code" href="_fat_structs_8h.html#af50cf547300f2cc5d33e7ab457b5a200">00388</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#af50cf547300f2cc5d33e7ab457b5a200">DIR_ATT_VOLUME_ID</a> = 0X08;
<a name="l00390"></a><a class="code" href="_fat_structs_8h.html#a3f9e7ceac3e0a9aebead998e88349139">00390</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a3f9e7ceac3e0a9aebead998e88349139">DIR_ATT_DIRECTORY</a> = 0X10;
<a name="l00392"></a><a class="code" href="_fat_structs_8h.html#a7144738c367c16e672b3e48962bc7dda">00392</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a7144738c367c16e672b3e48962bc7dda">DIR_ATT_ARCHIVE</a> = 0X20;
<a name="l00395"></a><a class="code" href="_fat_structs_8h.html#a0d3f6fbbd34126b2d5563bba65220985">00395</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a0d3f6fbbd34126b2d5563bba65220985">DIR_ATT_LONG_NAME</a> = 0X0F;
<a name="l00397"></a><a class="code" href="_fat_structs_8h.html#a0aa5725dd4916058f0c6c06b09f83059">00397</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a0aa5725dd4916058f0c6c06b09f83059">DIR_ATT_LONG_NAME_MASK</a> = 0X3F;
<a name="l00399"></a><a class="code" href="_fat_structs_8h.html#ad131502987658581d57cc18328d18aa5">00399</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#ad131502987658581d57cc18328d18aa5">DIR_ATT_DEFINED_BITS</a> = 0X3F;
<a name="l00401"></a><a class="code" href="_fat_structs_8h.html#a504c3d996b412f386becc27a8c49cd2c">00401</a> <span class="keyword">static</span> <span class="keyword">inline</span> uint8_t <a class="code" href="_fat_structs_8h.html#a504c3d996b412f386becc27a8c49cd2c">DIR_IS_LONG_NAME</a>(<span class="keyword">const</span> <a class="code" href="structdirectory_entry.html" title="FAT short directory entry.">dir_t</a>* dir) {
<a name="l00402"></a>00402   <span class="keywordflow">return</span> (dir-&gt;<a class="code" href="structdirectory_entry.html#a983149395439fbc9ca8497076b75fd6b">attributes</a> &amp; <a class="code" href="_fat_structs_8h.html#a0aa5725dd4916058f0c6c06b09f83059">DIR_ATT_LONG_NAME_MASK</a>) == <a class="code" href="_fat_structs_8h.html#a0d3f6fbbd34126b2d5563bba65220985">DIR_ATT_LONG_NAME</a>;
<a name="l00403"></a>00403 }
<a name="l00405"></a><a class="code" href="_fat_structs_8h.html#a40ed222fdb5b5c6b2f04268ab0ce20ca">00405</a> uint8_t <span class="keyword">const</span> <a class="code" href="_fat_structs_8h.html#a40ed222fdb5b5c6b2f04268ab0ce20ca">DIR_ATT_FILE_TYPE_MASK</a> = (<a class="code" href="_fat_structs_8h.html#af50cf547300f2cc5d33e7ab457b5a200">DIR_ATT_VOLUME_ID</a> | <a class="code" href="_fat_structs_8h.html#a3f9e7ceac3e0a9aebead998e88349139">DIR_ATT_DIRECTORY</a>);
<a name="l00407"></a><a class="code" href="_fat_structs_8h.html#a5ce8bde4d6ff3950df951e84c7bb8d58">00407</a> <span class="keyword">static</span> <span class="keyword">inline</span> uint8_t <a class="code" href="_fat_structs_8h.html#a5ce8bde4d6ff3950df951e84c7bb8d58">DIR_IS_FILE</a>(<span class="keyword">const</span> <a class="code" href="structdirectory_entry.html" title="FAT short directory entry.">dir_t</a>* dir) {
<a name="l00408"></a>00408   <span class="keywordflow">return</span> (dir-&gt;<a class="code" href="structdirectory_entry.html#a983149395439fbc9ca8497076b75fd6b">attributes</a> &amp; <a class="code" href="_fat_structs_8h.html#a40ed222fdb5b5c6b2f04268ab0ce20ca">DIR_ATT_FILE_TYPE_MASK</a>) == 0;
<a name="l00409"></a>00409 }
<a name="l00411"></a><a class="code" href="_fat_structs_8h.html#ace8ed88fcb41afc4d2fe0eabf96e71c6">00411</a> <span class="keyword">static</span> <span class="keyword">inline</span> uint8_t <a class="code" href="_fat_structs_8h.html#ace8ed88fcb41afc4d2fe0eabf96e71c6">DIR_IS_SUBDIR</a>(<span class="keyword">const</span> <a class="code" href="structdirectory_entry.html" title="FAT short directory entry.">dir_t</a>* dir) {
<a name="l00412"></a>00412   <span class="keywordflow">return</span> (dir-&gt;<a class="code" href="structdirectory_entry.html#a983149395439fbc9ca8497076b75fd6b">attributes</a> &amp; <a class="code" href="_fat_structs_8h.html#a40ed222fdb5b5c6b2f04268ab0ce20ca">DIR_ATT_FILE_TYPE_MASK</a>) == <a class="code" href="_fat_structs_8h.html#a3f9e7ceac3e0a9aebead998e88349139">DIR_ATT_DIRECTORY</a>;
<a name="l00413"></a>00413 }
<a name="l00415"></a><a class="code" href="_fat_structs_8h.html#a9d99b04fa090825a9b9c2468fa81e627">00415</a> <span class="keyword">static</span> <span class="keyword">inline</span> uint8_t <a class="code" href="_fat_structs_8h.html#a9d99b04fa090825a9b9c2468fa81e627">DIR_IS_FILE_OR_SUBDIR</a>(<span class="keyword">const</span> <a class="code" href="structdirectory_entry.html" title="FAT short directory entry.">dir_t</a>* dir) {
<a name="l00416"></a>00416   <span class="keywordflow">return</span> (dir-&gt;<a class="code" href="structdirectory_entry.html#a983149395439fbc9ca8497076b75fd6b">attributes</a> &amp; <a class="code" href="_fat_structs_8h.html#af50cf547300f2cc5d33e7ab457b5a200">DIR_ATT_VOLUME_ID</a>) == 0;
<a name="l00417"></a>00417 }
<a name="l00418"></a>00418 <span class="preprocessor">#endif  // FatStructs_h</span>
</pre></div></div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_fat_structs_8h.html">FatStructs.h</a>      </li>

    <li class="footer">Generated on Mon Dec 30 2013 18:53:02 for Repetier-Firmware by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
